package edu.java.homework.hw09.exercises.salads;

import edu.java.homework.hw09.exercises.salads.components.Components;
import edu.java.homework.hw09.exercises.salads.components.EggComponent;
import edu.java.homework.hw09.exercises.salads.components.FruitComponent;
import edu.java.homework.hw09.exercises.salads.components.MeatComponent;
import edu.java.homework.hw09.exercises.salads.components.MilkComponent;
import edu.java.homework.hw09.exercises.salads.components.SpiceComponent;
import edu.java.homework.hw09.exercises.salads.components.VegetableComponent;
import edu.java.homework.hw09.exercises.salads.products.EggProduct;
import edu.java.homework.hw09.exercises.salads.products.Fruit;
import edu.java.homework.hw09.exercises.salads.products.MeatProduct;
import edu.java.homework.hw09.exercises.salads.products.MilkProduct;
import edu.java.homework.hw09.exercises.salads.products.Spice;
import edu.java.homework.hw09.exercises.salads.products.Vegetable;
import edu.java.homework.hw09.exercises.salads.salads.ShepherdSalad;
import edu.java.homework.hw09.exercises.salads.salads.ShoppSalad;

public class TestClass {

    /**
     * @param args
     */
    public static void main(String[] args) {
	// Vegetables test
	// VegetableComponent veg1= new
	// VegetableComponent(Vegetable.BOILED_POTATO);
	// VegetableComponent veg2= new VegetableComponent(Vegetable.CARROT,
	// 23.5);
	// System.out.println(veg1);
	// System.out.println(veg2);

	// Fruit test
	// FruitComponent fruit1 = new FruitComponent(Fruit.LEMON);
	// FruitComponent fruit2 = new FruitComponent(Fruit.LEMON, 23.8);
	// System.out.println(fruit1);
	// System.out.println(fruit2);

	// Meat test
	// MeatComponent meat1= new MeatComponent(MeatProduct.HAM,12);
	// System.out.println(meat1);

	// Milk test
	// MilkComponent milk= new MilkComponent(MilkProduct.YELLOW_CHEESE,100);
	// System.out.println(milk);

	// Egg test
	// EggComponent eggComponent1=new EggComponent(EggProduct.BOILED_EGG);
	// EggComponent eggComponent2= new EggComponent(EggProduct.MAYONNAISE,
	// 123.4);
	// System.out.println(eggComponent1);
	// System.out.println(eggComponent2);

	// Spice test
	// SpiceComponent spice= new SpiceComponent(Spice.SALT, 0.3);
	// System.out.println(spice);

	// Components test

	VegetableComponent veg1 = new VegetableComponent(Vegetable.CUCUMBER,
		400);
	VegetableComponent veg2 = new VegetableComponent(Vegetable.CARROT, 248);
	VegetableComponent veg3 = new VegetableComponent(Vegetable.CABBAGE, 790);
	VegetableComponent[] vegs = new VegetableComponent[] { veg1, veg2, veg3 };

	FruitComponent fruit1 = new FruitComponent(Fruit.LEMON, 58);
	FruitComponent[] fruits = new FruitComponent[] { fruit1 };

	MeatComponent meat1 = new MeatComponent(MeatProduct.HAM, 23.67);
	MeatComponent meat2 = new MeatComponent(MeatProduct.SAUSAGE, 652.67);
	MeatComponent meat3 = new MeatComponent(MeatProduct.TUNA, 533.67);
	MeatComponent[] meat = new MeatComponent[] { meat1, meat2, meat3 };

	MilkComponent milk1 = new MilkComponent(MilkProduct.WHITE_CHEESE, 240);
	MilkComponent milk2 = new MilkComponent(MilkProduct.YELLOW_CHEESE, 300);
	MilkComponent[] milky = new MilkComponent[] { milk1, milk2 };

	EggComponent egg1 = new EggComponent(EggProduct.BOILED_EGG, 200);
	EggComponent egg2 = new EggComponent(EggProduct.MAYONNAISE, 300);
	EggComponent[] eggs = new EggComponent[] { egg1, egg2 };

	SpiceComponent spice1 = new SpiceComponent(Spice.OLIVE_OIL, 200);
	SpiceComponent spice2 = new SpiceComponent(Spice.SALT, 170);
	SpiceComponent spice3 = new SpiceComponent(Spice.VINEGARD, 456.3);
	SpiceComponent spice4 = new SpiceComponent(Spice.BLACK_PEPPER, 698);
	SpiceComponent[] spices = new SpiceComponent[] { spice1, spice2,
		spice3, spice4 };

	Components componentsMySalad = new Components(vegs, fruits, meat,
		milky, eggs, spices);
	// System.out.println(componentsMySalad);

	VegetableComponent[] vegs2 = new VegetableComponent[] { veg1 };
	MilkComponent[] milky2 = new MilkComponent[] { milk1 };
	Components componentsMySalad2 = new Components(vegs2, null, null,
		milky2, null, null);
	// System.out.println(componentsMySalad2);

	// test SaladCook
	ShepherdSalad shepherd = SaladCook.instance().prepareShepherdSalad();

	ShoppSalad shopp = SaladCook.instance().prepareShoppSalad();

    }

}
